package com.design.template;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class AsyncService {
    @Async
    public void asyncMethod() {
        log.info("异步方法执行");
    }
}
